<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 统一导航栏样式 -->
    <style>
        :root {
            --primary-color: #667eea;
            --secondary-color: #764ba2;
            --accent-color: #f093fb;
            --text-dark: #2d3748;
            --text-light: #718096;
            --bg-light: #f7fafc;
        }

        /* 统一导航栏样式 */
        .unified-navbar {
            background: white;
            border-bottom: 1px solid #e5e7eb;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            height: 70px;
            width: 100%;
            margin: 0;
            padding: 0;
        }

        .unified-navbar-container {
            width: 100%;
            padding: 0 24px;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .unified-navbar-left {
            flex-shrink: 0;
        }

        .unified-navbar-brand {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #1f2937;
            font-weight: 700;
            font-size: 1.5rem;
        }

        .unified-navbar-brand i {
            color: var(--primary-color);
            margin-right: 8px;
            font-size: 1.2rem;
        }

        .unified-navbar-brand:hover {
            color: var(--primary-color);
            text-decoration: none;
        }

        .unified-navbar-center {
            flex: 1;
            display: flex;
            justify-content: center;
        }

        .unified-navbar-menu {
            display: flex;
            align-items: center;
            gap: 40px;
        }

        .unified-navbar-right {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .unified-nav-item {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #6b7280;
            font-weight: 500;
            font-size: 14px;
            padding: 8px 12px;
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        .unified-nav-item i {
            margin-right: 6px;
            font-size: 14px;
        }

        .unified-nav-item:hover {
            color: var(--primary-color);
            background: #eff6ff;
            text-decoration: none;
        }

        .unified-nav-item.active {
            color: var(--primary-color);
            background: #eff6ff;
            font-weight: 600;
        }

        /* 用户信息样式 */
        .unified-nav-item.user-info {
            background: #f3f4f6;
            color: var(--primary-color);
            font-weight: 600;
            cursor: default;
        }

        .unified-nav-item.user-info:hover {
            background: #f3f4f6;
            color: var(--primary-color);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .unified-navbar-container {
                padding: 0 16px;
            }
            
            .unified-navbar-menu {
                gap: 15px;
            }
            
            .unified-nav-item {
                font-size: 13px;
                padding: 6px 8px;
            }
            
            .unified-navbar-brand {
                font-size: 1.3rem;
            }
        }

        @media (max-width: 576px) {
            .unified-navbar-center {
                display: none;
            }
            
            .unified-navbar-right {
                gap: 10px;
            }
        }
    </style>
</head>
<body>
    <!-- 统一导航栏组件 -->
    <header class="unified-navbar" th:fragment="navbar(currentPage)">
        <div class="unified-navbar-container">
            <div class="unified-navbar-left">
                <a href="/" class="unified-navbar-brand">
                    <i class="fas fa-briefcase"></i>
                    <span>AI超级面试官平台</span>
                </a>
            </div>
            
            <div class="unified-navbar-center">
                <nav class="unified-navbar-menu">
                    <a href="/" class="unified-nav-item" th:classappend="${currentPage == 'home' ? 'active' : ''}">首页</a>
                    <a href="/chat" class="unified-nav-item" th:classappend="${currentPage == 'chat' ? 'active' : ''}">
                        <i class="fas fa-robot"></i>
                        AI智能助手
                    </a>
                    <a href="/interview" class="unified-nav-item" th:classappend="${currentPage == 'interview' ? 'active' : ''}">
                        <i class="fas fa-clipboard-question"></i>
                        模拟面试题
                    </a>
                    <a href="/job/search" class="unified-nav-item" th:classappend="${currentPage == 'job-search' ? 'active' : ''}">
                        <i class="fas fa-search"></i>
                        职位搜索
                    </a>
                </nav>
            </div>
            
            <div class="unified-navbar-right">
                <!-- 这里的内容将由auth.js动态更新 -->
                <a href="/login" class="unified-nav-item">
                    <i class="fas fa-sign-in-alt"></i>
                    登录
                </a>
                <a href="/register" class="unified-nav-item">
                    <i class="fas fa-user-plus"></i>
                    注册
                </a>
            </div>
        </div>
    </header>
</body>
</html> 